/**
 * 
 */
package xsqs.jdbc;

import java.io.ByteArrayOutputStream;
import java.io.DataOutputStream;
import java.io.IOException;

/**
 * @author Yolanda
 *
 */
public class Utility
{
    public static byte[] int2byte(int i) throws IOException
    {
	ByteArrayOutputStream bout = new ByteArrayOutputStream();
	DataOutputStream dout = new DataOutputStream(bout);
	dout.writeInt(i);
	byte[] b = bout.toByteArray();
	bout.close();
	dout.close();
	return b;
    }
    
    static final String PREFIX_URL = "jdbc:xsqs://";
    
    static final int DRIVER_MAJOR_VERSION = 1;
    
    static final int DRIVER_MINOR_VERSION = 0;
    
    static final String DRIVER_NAME = "XSQS JDBC Driver";
    
    static final int JDBC_MAJOR_VERSION = 4;
    
    static final int JDBC_MINOR_VERSION = 0;
    
    static final int STATEMENT_COUNT = 10;

}
